<?php
$catid = (int) $_GET['catid'];
$id = (int) $_GET['id'];
$p_url = go($catid,$id);
?>
{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix" {$catid}>
	<h3 class="fl"><a href="{get_ref($p_url)}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">立即报名</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main" id="toSayForm">
<form id="myform" onsubmit="return:false;">
	<input type="hidden" name="a_catid" value="{$catid}">
	<input type="hidden" name="a_id" value="{$id}">
	<label class="clearfix">
		<span>姓名：</span>
		<i>*</i>
		<input type="text" class="text3" name="realname" value="{$info[realname]}">
	</label>
	<label class="clearfix">
		<span>行业：</span>
		<input type="text" class="text3" name="field" value="{$info[field]}">
	</label>
	<label class="clearfix">
		<span>职位：</span>
		<i>*</i>
		<input type="text" class="text3" name="job" value="{$info[job]}">
	</label>
	<label class="clearfix">
		<span>手机：</span>
		<i>*</i>
		<input type="text" class="text3" name="mobile" value="{$info[mobile]}">
	</label>
	<label class="clearfix">
		<span>公司名称：</span>
		<i>*</i>
		<input type="text" class="text3" name="company" value="{$info[company]}">
	</label>
	<label class="clearfix">
		<span>年收入：</span>
		<select class="text3 bgSelect" name="income">
			<option></option>
			<option>2.4万元以下</option>
			<option>2.4万元-6万元</option>
			<option>6万元-12万元</option>
			<option>12万元-24万元</option>
			<option>24万元以上</option>
		</select>
	</label>
	<label class="clearfix">
		<span>学历：</span>
		<select class="text3 bgSelect" name="edu">
			<option></option>
			<option>高中/中专/中技及以下</option>
			<option>大专及同等学历</option>
			<option>本科/学士及同等学历</option>
			<option>硕士/研究生及同等学历</option>
			<option>博士及以上</option>
			<option>其他</option>
		</select>
	</label>
	<label class="clearfix">
		<span>邮箱：</span>
		<input type="text" class="text3" name="email" value="{$info[email]}">
	</label><!-- 
	<div class="kfTel">如有疑问请拨打客服电话：<a href="tel:4000210568">4000210568</a></div> -->
	<a class="btnSubmit33" id="submit">提 交</a>
</form>
	<div class="question_zixun"><a href="{MEMBER_PATH}&c=other&a=faq">常见问题&规则</a></div>
</main>
<!-- / main -->

<script type="text/javascript">
$(function() {
	$('#submit').click(function() {
		$.ajax({
			type: 'post',
			url: '/index.php?m=member&c=apply&a=doclass_ajax',
			data: $('#myform').serializeArray(),
			dataType: 'json',
			success: function(res) {
				console.info(res);
				if (res.status == 100) {
					location.href = '{MEMBER_PATH}&c=apply&a=doclass_success&forward={$p_url}';
				} else {
					alert_msg(res.desc);
				}
			}
		});
	});
});
</script>

<!--扣除学分弹窗提醒-->
<div class="popupWindow">
	<div class="popupWindowcon">
		<div class="popupWindowcon1">
			<a href="javascript:$('.popupWindow').remove();" class="close">&#215;</a>
			<div class="t1">每次预约课程需要扣除<em>50</em>学分</div>
			<a href="javascript:$('.popupWindow').remove();" class="btn_determine">确  定</a>
			<div class="pwlink clearfix">
				<a href="{MEMBER_PATH}&c=jifen&a=howget">查看学分规则</a>
				<a href="javascript:;"><input type="checkbox" id="check1"><label for="check1">下次不再提醒</label></a>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
var width1 = $(window).width();
var height1 = $(window).height();

$(".popupWindow").css({
	height: height1 + "px",
	width: width1 + "px"
});

$(function() {
	var is_not_need_pop_cut_jifen = $.cookie('IS_NOT_NEED_POP_CUT_JIFEN');
	if (is_not_need_pop_cut_jifen != 'true') {
		$('.popupWindow').show();
	}
	$('#check1').click(function() {
		var _v = $(this).prop('checked');
		$.cookie('IS_NOT_NEED_POP_CUT_JIFEN', _v);
		console.info(_v);
	});
});
</script>
{template "content","footer"}